package com.twu.biblioteca;

import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class IO {
    private final PrintStream out;
    private final InputStream in;
    private final Scanner scanner;

    public IO(PrintStream out, InputStream in) {
        this.out = out;
        this.in = in;
        scanner = new Scanner(in);
    }

    void display(String displayMessage) {
        out.println(displayMessage);
    }

    int nextInt() {
        return scanner.nextInt();
    }

    String nextLine(){
        return scanner.nextLine();
    }
}